﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("XuLyViPham")]
    public class XuLyViPham:BaseModel
    {
        public int Id { get; set; }

        public DateTime Ngay { get; set; }
        public string DoiTuongViPham { get; set; }
        public string NoiDung { get; set; }
        public string CanhCao { get; set; }
        public string PhatTien { get; set; }
        public DateTime NgayTamDinhChi { get; set; }
        public DateTime NgayPhucHoi { get; set; }
        public string DinhChi { get; set; }
        public string BienPhapXuLyKhac { get; set; }

        [NotMapped]
        public string TenNhomHanhVi
        {
            get
            {
                if (NhomHanhVi != null)
                {
                    return NhomHanhVi.Ten;
                }
                return string.Empty;
            }
        }
        public virtual NhomHanhVi NhomHanhVi { get; set; }
        public virtual PhieuDieuTraCoSo PhieuDieuTraCoSoes { get; set; }
    }
}
